* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

nav {
    background-color: #333;
}

.main-menu {
    list-style: none;
    display: flex;
    justify-content: space - around;
    align-items: center;
    padding: 100px;
}

.main-menu > li {
    position: relative;
}

.main-menu > li > a {
    display: block;
    color: rgb(255, 255, 255);
    padding: 15px;
    text-decoration: none;
}

.sub-menu {
    list-style: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #4f4f4f;
    display: none;
}

.sub-menu > li > a {
    display: block;
    color: rgb(54, 53, 53);
    padding: 10px;
    text-decoration: none;
}

.has-sub-menu:hover.sub-menu {
    display: block;
}